<template>
  <div>
    <NavType/>
    <List/>
    <Recommend/>
    <Rank/>
    <Like/>
    <Floor v-for="floor in floorList" :key="floor.id" :floor='floor'/>
    <Brand/>
  </div>
</template>

<script>
import {requestFloorList} from '@/api'
import List from '@pages/Home/List'
import Like from '@pages/Home/Like'
import Brand from '@pages/Home/Brand'
import Recommend from '@pages/Home/Recommend'
import Floor from '@pages/Home/Floor'
import Rank from '@pages/Home/Rank'
export default {
name:'Home',
data(){
  return{
    floorList:[]
  }
},
mounted(){
   //初始化floor的数据
  this.getFloorList()
},
methods:{
  //初始化floor数据的逻辑
  async getFloorList(){
    const result=await requestFloorList();
    this.floorList=result
  }
},
components:{
  List,
  Like,
  Brand,
  Recommend,
  Floor,
  Rank
},

}
</script>

<style>

</style>